$(document).ready(function(){
	initOrder();
});



//获取订单列表


function showOrder(orderList){
	for (var i=0;i<orderList.length;i++) {
		$("#orderList").append('<tr><td><img src="../'+orderList[i].path+'"/></td><td>'+orderList[i].name+'</td><td>'+orderList[i].address+'</td><td>'+orderList[i].createtime.split(".")[0]+'</td></tr>');
	}
}


function initOrder(){
	var url = "/HyperIT/goods/findOrder";
	$.get(url,function(data){
		if(data.serviceResult){
			var orderList = data.resultParm.goodsorder;
			showOrder(orderList);
		}
		else{
			alert(data.resultInfo);
		}
	});
}
